//
//  LGHomeTableViewCell.m
//  ligenyun
//
//  Created by apple on 2018/3/23.
//  Copyright © 2018年 stoneobs@icloud.com. All rights reserved.
//

#import "LGCultureHomeTableViewCell.h"

@interface LGCultureHomeTableViewCell ()
@property(nonatomic, strong) STButton       *iconButton;
@property(nonatomic, strong) STLabel        *titleLable;
@property(nonatomic, strong) STLabel        *desLable;
@property(nonatomic, strong) STButton       *commentButton;
@end
@implementation LGCultureHomeTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self == [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self configSubView];
    }
    return self;
}
+ (CGFloat)cellHeight{
    return 85;
}
#pragma mark --SubView
- (void)configSubView{
    self.iconButton = [[STButton alloc] initWithFrame:CGRectMake(15, 10, 75, 50)
                                                title:nil
                                           titleColor:nil
                                            titleFont:0
                                         cornerRadius:0
                                      backgroundColor:nil
                                      backgroundImage:[UIImage imageNamed:@"1"]
                                                image:nil];
    [self addSubview:self.iconButton];
    
    STLabel * titleLable = [[STLabel alloc] initWithFrame:CGRectMake(self.iconButton.right + 10,self.iconButton.top - 5, UIScreenWidth - self.iconButton.right, 20)
                                                     text:@"祭祀文化"
                                                textColor:FirstTextColor
                                                     font:15
                                              isSizetoFit:NO
                                            textAlignment:NSTextAlignmentLeft];
    self.titleLable = titleLable;
    [self addSubview:self.titleLable];
    
    STLabel * desLable= [[STLabel alloc] initWithFrame:CGRectMake(self.iconButton.right+ 10,self.titleLable.bottom, UIScreenWidth - self.iconButton.right, 20)
                                                   text:@"祭祀文化氛围9个历程步骤和级银盛"
                                              textColor:SecendTextColor
                                                   font:12
                                            isSizetoFit:NO
                                          textAlignment:NSTextAlignmentLeft];
    self.desLable = desLable;
    [self addSubview:self.desLable];
    
    self.iconButton = [[STButton alloc] initWithFrame:CGRectMake(self.iconButton.right+ 10, self.desLable.bottom, 60, 44)
                                                     title:@"122"
                                                titleColor:FirstTextColor
                                                 titleFont:14
                                              cornerRadius:0
                                           backgroundColor:nil
                                           backgroundImage:nil
                                                     image:[UIImage imageNamed:@"意见反馈"]];
    self.iconButton.titleEdgeInsets = UIEdgeInsetsMake(0, 10, 0, 0);
    [self addSubview:self.iconButton];
}

@end

